{% include header.html %}

<div class="container container-left">
    <div class="row">
        <div class="col-md-3 hidden-xs">
            {% include sidebar.html %}
        </div>
        <div class="col-md-9">
          <div class="article">
            <div class="well-article">
                <h1 style="font-size: 1.8em;"><a href="{{ site.baseurl}}{{ page.url }}">{{ page.date | date: "%Y年%m月%d日" }} - {{ page.title }}</a></h1>
				<h5>
					<span id="busuanzi_container_page_pv" style="float:right;color:#00FF00;">
						
					</span>
				</h5>
				
            {% if site.comments == true and page.comments == true and site.disqus != '' %}
                <p class="author"><a href="#disqus_thread">Comments</a></p>
            {% endif %}
            <div class="post-content">
            {{ content }}
            </div>
			
			<div class="copyright_">
				<p>
					<fieldset>
						<div class="form-group">
						  <hr style="background-color: #ADADAD;height: 1px;opacity:0.5">
						  版权声明：本文采用<a href='http://creativecommons.org/licenses/by-nc-sa/2.5/cn/'>BY-NC-SA</a>协议进行授权，转载<a href='{{site.url}}'>麦田技术博客</a>的文章请注明出处</br></br>
						  原文地址：<a href='{{page.url}}'>http://blog.itmyhome.com{{page.url}}</a></br></br>
						  <!-- 欢迎加入JAVA技术交流群：<a href="http://wp.qq.com/wpa/qunwpa?idkey=108cd214419cd727d5e26f370719a9442b3ce92ae7cdb9b5efb21266cf4f42f2" target="_blank">74955800</a> -->
						</div>
					  </fieldset>
					
				</p>
			</div>
			
            {% if page.comments %}
            <div id="disqus_thread">
                <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
                <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
            </div>
            {% endif %}
            </div>
			

          </div>
		 <div class="row">
		     <div class="col-xs-12 col-md-10"></div>
		     <div class="col-xs-6 col-md-2">
					<!-- JiaThis Button BEGIN -->
					<div class="jiathis_style">
						<a class="jiathis_like_tsina"></a>
					</div>
					<script type="text/javascript"
						src="http://v3.jiathis.com/code_mini/jia.js" charset="utf-8"></script>
					<!-- JiaThis Button END -->
			 </div>
	 	 </div>
          <div class="pagination">
              {% if page.next %}
                <a class="btn btn-default" href="{{ site.baseurl}}{{ page.next.url }}" class="next">上一篇</a>
              {% endif %}
              {% if page.previous %}
                <a class="btn btn-default" href="{{ site.baseurl}}{{ page.previous.url }}" class="previous">下一篇</a>
              {% endif %}
		  </div>
		    <!-- 多说评论框 start -->
			<div class="ds-thread" data-thread-key="{{ page.blog_id }}" data-title="{{ page.title }}" data-url="http://itmyhome.com/{{ page.url }}"></div>
			<!-- 多说评论框 end -->
			<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
			<script type="text/javascript">
				var duoshuoQuery = {short_name:"itmyhome1900"};
					(function() {
						var ds = document.createElement('script');
						ds.type = 'text/javascript';ds.async = true;
						ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
						ds.charset = 'UTF-8';
						(document.getElementsByTagName('head')[0] 
						 || document.getElementsByTagName('body')[0]).appendChild(ds);
					})();
			</script>
			<!-- 多说公共JS代码 end -->

        </div>
    </div>
</div>

{% include disqus-comments.html %}
{% include footer.html %}
<script type="text/javascript">
		 window.onload = function(){
			//实现等比缩放大图片 
			var w = 800;//允许最大宽度 
			$("img").each(function(){ //如果有很多图片，我们可以使用each()遍历 
				var img_w = $(this).width();//图片实际宽度 
				var img_h = $(this).height();//图片实际高度 
				if(img_w>w){//如果图片宽度超出设置的允许最大宽度
					var height = (w*img_h)/img_w; //高度等比缩放 
					$(this).css({"width":w,"height":height});//设置缩放后的宽度和高度 
				} 
			}); 
			
			//图片响应式设计
			$("img[alt='License Badge']").each(function(){
				$(this).addClass("img-responsive")
			})
		 }
		 $(document).ready(function(){
		    $("#archive").addClass("active").siblings().removeClass("active");
				
			//为超链接加上target='_blank'属性
			$('a[href^="http"]').each(function(){
				 $(this).attr('target', '_blank');
			});
			
	     }); 
</script>
